import createAxios from '/@/utils/axios'
import { useSiteConfig } from '/@/stores/siteConfig'
import { useAdminInfo } from '/@/stores/adminInfo'

const controllerUrl = '/admin/yxerp.code.rule/'

export function getNextCode(data: object) {
    return createAxios(
        {
            url: controllerUrl + 'getNextCode',
            method: 'post',
            data: data,
        },
        {
            showSuccessMessage: false,
        }
    )
}
export function getcode(data: object) {
    return createAxios(
        {
            url: controllerUrl + 'getcode',
            method: 'post',
            data: data,
        },
        {
            showSuccessMessage: false,
        }
    )
}